<?php if (!defined('THINK_PATH')) exit();?> <!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">

    <title> 游戏后台管理系统</title>

    <meta name="keywords" content="">
    <meta name="description" content="">

    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->

    <link rel="shortcut icon" href="favicon.ico"> <link href="/game/Public/admin/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="/game/Public/admin/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/game/Public/admin/css/animate.css" rel="stylesheet">
    <link href="/game/Public/admin/css/style.css?v=4.1.0" rel="stylesheet">
</head>

<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
    <div id="wrapper">
        <!--左侧导航开始-->
        <nav class="navbar-default navbar-static-side" role="navigation">
            <div class="nav-close"><i class="fa fa-times-circle"></i>
            </div>
            <div class="sidebar-collapse">
                <ul class="nav" id="side-menu">
                <li style="height: 16px;"></li>
                <?php if(($gm_admin["role"]) != "1"): ?><li>
                        <a href="#">
                            <i class="fa fa-users"></i>
                            <span class="nav-label">玩家管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a class="J_menuItem" href="<?php echo U('Admin/Gamer/gamerList');?>" id="gamerList">玩家列表</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="<?php echo U('Admin/Gamer/payList');?>" id="g_payList">充值记录</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="<?php echo U('Admin/Gamer/consumeList');?>" id="consumeList">消费记录</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="<?php echo U('Admin/Gamer/recordList');?>" id="recordList">历史战绩</a>
                            </li>
                        </ul>
                    </li><?php endif; ?>
                    <li>
                        <a href="#">
                            <i class="fa fa-sitemap"></i>
                            <span class="nav-label"><?php if(($gm_admin["role"]) != "1"): ?>代理管理<?php else: ?>代理中心<?php endif; ?></span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            
                            
                            <li>
                                <a class="J_menuItem" href="<?php echo U('Admin/Admin/adminList'); if(($gm_admin["role"]) == "1"): ?>?keywords=admin_id&keyvalue=<?php echo ($gm_admin["admin_id"]); endif; ?>" id="adminList"><?php if(($gm_admin["role"]) == "1"): ?>个人中心<?php else: ?>代理列表<?php endif; ?></a>
                            </li>
                            
                            <li>
                                <a class="J_menuItem" href="<?php echo U('Admin/Admin/buyList'); if(($gm_admin["role"]) == "1"): ?>?keywords=admin_id&keyvalue=<?php echo ($gm_admin["admin_id"]); endif; ?>" id="buyList">购买记录</a>
                            </li>
                            
                            <li>
                                <a class="J_menuItem" href="<?php echo U('Admin/Gamer/payList'); if(($gm_admin["role"]) == "1"): ?>?keywords=admin_id&keyvalue=<?php echo ($gm_admin["admin_id"]); endif; ?>" id="a_payList">充值记录</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="<?php echo U('Admin/Admin/rebateList'); if(($gm_admin["role"]) == "1"): ?>?keywords=admin_id&keyvalue=<?php echo ($gm_admin["admin_id"]); endif; ?>" id="rebateList">返利记录</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="<?php echo U('Admin/Admin/withdrawList'); if(($gm_admin["role"]) == "1"): ?>?keywords=admin_id&keyvalue=<?php echo ($gm_admin["admin_id"]); endif; ?>" id="rebateList">提现记录</a>
                            </li>
                        </ul>
                    </li>
                    <?php if(($gm_admin["role"]) == "1"): ?><li>
                        <a href="#">
                            <i class="fa fa-newspaper-o"></i>
                            <span class="nav-label">交易中心</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a class="J_menuItem" href="<?php echo U('Admin/Admin/pay');?>" id="reviewList">玩家充值</a>
                            </li>
                            
                            <li>
                                <a class="J_menuItem" href="<?php echo U('Admin/Admin/buyApply');?>" id="rebateList">购买申请</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="<?php echo U('Admin/Admin/withdrawApply');?>" id="rebateList">提现申请</a>
                            </li>
                        </ul>
                    </li><?php endif; ?>
                    <?php if(($gm_admin["role"]) != "1"): ?><li>
                        <a href="#">
                            <i class="fa fa-newspaper-o"></i>
                            <span class="nav-label">公告管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a class="J_menuItem" href="<?php echo U('Admin/Bulletin/bulletinList');?>" id="bulletinList">公告列表</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="<?php echo U('Admin/Bulletin/bulletinAdd');?>" id="bulletinAdd">添加公告</a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa-cog"></i>
                            <span class="nav-label">系统管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a class="J_menuItem" href="<?php echo U('Admin/System/adminAdd');?>" id="adminList">添加代理</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="<?php echo U('Admin/Admin/pay');?>" id="reviewList">玩家充值</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="<?php echo U('Admin/System/buyReview');?>" id="reviewList">购买审核</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="<?php echo U('Admin/System/withdrawReview');?>" id="reviewList">提现审核</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="<?php echo U('Admin/System/totalList');?>" id="totalList">数据统计</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="<?php echo U('Admin/System/rebateRule');?>" id="rebateRule">返利规则</a>
                            </li>
                        </ul>
                    </li><?php endif; ?> 
                </ul>
            </div>
        </nav>
        <!--左侧导航结束-->
<!--右侧部分开始-->
<div id="page-wrapper" class="gray-bg dashbard-1">
    <div class="row border-bottom">
        <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
            <div class="navbar-header"><a class="navbar-minimalize minimalize-styl-2 btn btn-info " href="#"><i class="fa fa-bars"></i> </a>
            <h2 >后台管理系统</h2>
            </div>
            <ul class="nav navbar-top-links navbar-right">
                <li class="dropdown">
                    <a class="dropdown-toggle count-info" data-toggle="dropdown" href="#">
                        <i class="fa fa-user"></i> <?php echo ($gm_admin["truename"]); ?>&nbsp;<i class="fa fa-caret-down"></i> 
                    </a>
                    <ul class="dropdown-menu dropdown-alerts">
                        <li >
                            <a href="<?php echo U('Admin/Admin/modifyPwd');?>">
                                <div>
                                    <i class="fa fa-edit fa-fw"></i> 修改密码
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="<?php echo U('Admin/Login/out');?>">
                                <div>
                                    <i class="fa fa-sign-out"></i> 退出
                                </div>
                            </a>
                        </li>
                    </ul>
                </li>
            </ul>
        </nav>
    </div>
    <!-- 主体内容开始 -->
    <div class="row J_mainContent" id="content-main">
    <iframe id="J_iframe" width="100%" height="100%" src="<?php echo U('Admin/Gamer/gamerList');?>" frameborder="0" data-id="index_v1.html" seamless></iframe>
    </div>
    <!-- 主体内容结束 -->
</div>
<!--右侧部分结束-->
    </div>

    <!-- 全局js -->
    <script src="/game/Public/admin/js/jquery.min.js?v=2.1.4"></script>
    <script src="/game/Public/admin/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="/game/Public/admin/js/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script src="/game/Public/admin/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <script src="/game/Public/admin/js/plugins/layer/layer.min.js"></script>

    <!-- 自定义js -->
    <script src="/game/Public/admin/js/hAdmin.js?v=4.1.0"></script>
    <script type="text/javascript" src="/game/Public/admin/js/index.js"></script>

    <!-- 第三方插件 -->
    <script src="/game/Public/admin/js/plugins/pace/pace.min.js"></script>
<div style="text-align:center;">
<p>来源:<a href="http://www.mycodes.net/" target="_blank">源码之家</a></p>
</div>
</body>

</html>
<script type="text/javascript">
    $('.J_menuItem').each(function(){
        $(this).click(function(){
            $('.J_menuItem').css("color","#869fb1");
            $(this).css("color","#fff");
        })
    })
</script>